package cn.legend.travel.admin.authorize.dao.persist.mapper;

import cn.legend.travel.admin.authorize.pojo.entity.Role;
import cn.legend.travel.admin.authorize.pojo.vo.RoleAndPermissionVO;
import cn.legend.travel.admin.authorize.pojo.vo.RoleStandardVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface RoleMapper extends BaseMapper<Role> {

    RoleStandardVO getRoleById(Long roleId);

    List<RoleAndPermissionVO> getAll();

}
